package com.wl.api.dto.system;

import java.io.Serializable;
import java.util.Date;

import com.wl.api.dto.base.PaginationConst;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 首页-产品服务
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OmsProductServiceDTO extends PaginationConst implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;

	private String productTitle;

	private String imgUrl;

	private String productDesc;

	private String linkUrl;

	private Integer status; // 0:待发布, 1:已发布, 2:下架

	private Date createTime;

	private Long createUserId;
	
	private Date updateTime;

	private String updateUesr;
	
	public OmsProductServiceDTO buildCreateMsg(Long userId) {
		this.createUserId = userId;
		this.createTime = new Date();
		return this;
	}
	public OmsProductServiceDTO buildUpdateMsg(String username) {
		this.updateUesr = username;
		this.updateTime = new Date();
		return this;
	}
	
	

}
